<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <%@include file="../common/head.jspf" %>
    </head>

    <body class="sb-l-o sb-r-c" data-menu="#menu_user" data-list="#li_user_list">

        <!-- 主体内容开始 -->
        <div id="main">

            <!--侧边导航栏-->
            <%@include file="../common/sidebar.jspf" %>

            <!-- Start: Content-Wrapper -->
            <section id="content_wrapper">

                <!-- 顶部导航 -->
                <header id="topbar">
                    <div class="topbar-left">
                        <ol class="breadcrumb">
                            <li class="crumb-active">
                                <span>软擎科技</span>
                            </li>
                            <li class="crumb-icon">
                                <a href="dashboard"><span class="glyphicon glyphicon-home"></span></a>
                            </li>
                            <!-- 当前页 -->
                            <li class="crumb-trail">客户回访管理</li>
                        </ol>
                    </div>
                    <div class="topbar-right">
                        <!-- 登录信息 -->
                        <%@include file="../common/session.jspf" %>
                    </div>
                </header>
                <!-- 顶部导航结束 -->

                <!-- 页面内容开始 -->
                <section id="content">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="panel panel-visible" id="spy3">
                                <div class="panel-heading prn">
                                    <div class="panel-title pull-left hidden-xs">
                                        <span class="glyphicons glyphicons-group"></span>客户回访管理
                                    </div>
                                    <div class="dataTables_length mn pull-right" style="line-height: 39px;">
                                        <label>类型 
                                            <select name="userType" id="userType" class="form-control h-30" style="padding: 0px 12px;">
                                                <option value="">全部</option>
                                                <c:forEach items="${UserType}" var="type">
                                                    <option value="${type}">${type.key}</option>
                                                </c:forEach>
                                            </select> 
                                        </label>
                                        <label>回访人 
                                            <select name="salemanId" id="salemanId" class="form-control h-30" style="padding: 0px 12px;">
                                                <option value="">全部</option>
                                            </select> 
                                        </label>
                                        <button class="btn btn-sm pt4 pb4 btn-system" id="searchRecord"><i class="fa fa-search mr5" style="margin: 0px 5px 3px 0px;"></i>查询</button>
                                    </div>
                                </div>
                                <div class="panel-body pn">
                                    <table class="table table-striped table-hover table-text-center" id="recordList" cellspacing="0" width="100%">
                                        <thead>
                                            <tr>
                                                <th>类别</th>
                                                <th>用户名</th>
                                                <th>姓名</th>
                                                <th>手机号</th>
                                                <th>账户总额</th>
                                                <th>可用余额</th>
                                                <th style="width:200px; padding-left: 0px;">回访记录</th>
                                                <th>回访时间</th>
                                                <th>最后回访人</th>
                                            </tr>
                                        </thead>
                                        <tbody></tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>
                <!-- 页面内容结束 -->
            </section>
        </div>
        <!-- 主体内容结束 -->
        <!-- 公共函数 -->
        
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog">
            <div class="record">
                <form id="recordForm" method="POST">
                    <input type="hidden" id="userId" name="userId" value=""/>
                    <ul>
                        <li><b>客户回访记录：</b></li>
                        <li class="history">
                            <ul id="history"></ul>
                        </li>
                        <li><b>客户信息编辑：</b></li>
                        <li><span>客户类别：</span>
                            <span>
                                <select id="add-userType" name="userType" class="form-control h-30">
                                    <c:forEach items="${UserType}" var="types">
                                        <option value="${types}">${types.key}</option>
                                    </c:forEach>
                                </select> 
                            </span>
                        </li>
                        <li class="record-text">
                            <span>回访内容：</span>
                            <span><textarea id="record" name="record"/></textarea></span>
                        </li>
                        <li>
                            <span>回访人：</span>
                            <span>
                                <select id="add-salemanId" class="form-control h-30" name="salemanId">
                                </select>
                            </span>
                        </li>
                        <li>
                            <input class="btn btn-sm pt4 pb4 btn-system" data-dismiss="modal" id="cancel" value="取消"/>
                            <input class="btn btn-sm pt4 pb4 btn-system" type="button" id="confirm" value="确认"/>
                        </li>
                    </ul>
                </form>
            </div>
        </div>
        <%@include file="../common/scripts.jspf" %>
        <script src="${rootPath}/js/pages/user/visit.js" type="text/javascript"></script>
    </body>
</html>
